package com.atguigu.springcloud.exception;

import com.atguigu.springcloud.enums.BaseExceptionCode;

/**
 * @Author lizhilong
 * @create 2020/5/2 15:33
 * @desc
 */
public class PaymentBusinessException extends BaseException {

    public PaymentBusinessException(String errorCode, String message) {
        super(errorCode, message);
    }

    public PaymentBusinessException(Throwable cause) {
        super(cause);
    }

    public PaymentBusinessException(BaseExceptionCode errorCodeEnum) {
        super(errorCodeEnum.getErrorCode(), errorCodeEnum.getErrorMessage());
    }
}
